<?php echo $this->render("header.phtml"); ?>
<label class="title">Administrator control - Search article</label>
<div class="horiz_sep">&nbsp;</div>
<?php
if (isset($this->hits)) 
	$hits = $this->hits; 
?>
<form action="<?= $this->baseUrl; ?>/<?= $this->contextPath; ?>/search" method="post">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
  	<tr>
    	<td><input type="text" name="q" value=""/></td>
    	<td><input type="submit" name="search" value="Search"/></td>
  	</tr>
</table>
</form>

<?php
	if (isset($hits)){
		foreach ($hits as $hit) {
			echo $hit->title."<br/>".$hit->lead."<br/>".$hit->contents;		
		}
	}
?>
<?php echo $this->render("footer.phtml"); ?>